Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove src/backend #3413

Merged
merged 3 commits into from
Apr 22, 2022
Merged

Remove src/backend #3413

merged 3 commits into from
Apr 22, 2022

Conversation

TueeNguyen
Copy link
Contributor

@TueeNguyen TueeNguyen commented Apr 6, 2022

Issue This PR Addresses

Part of #2777

  • I'm removing the code here
  • Will change the docs after this PR

Type of Change

  • Bugfix: Change which fixes an issue
  • New Feature: Change which adds functionality
  • Documentation Update: Change which improves documentation
  • UI: Change which improves UI

Description

  • Remove most of backend code

Steps to test the PR

  • cp config/env.development .env

  • pnpm services:start parser studio db kong rest meta

  • pnpm db:init

  • I guess if pnpm services:start run normally that's fine

  • Need to keep in mind if other parts of telescope use anything from legacy backend

  • Need to merge and test on staging to know exactly what will happen

Checklist

  • Quality: This PR builds and passes our npm test and works locally
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Screenshots: This PR includes screenshots or GIFs of the changes made or an explanation of why it does not (if applicable)
  • Documentation: This PR includes updated/added documentation to user exposed functionality or configuration variables are added/changed or an explanation of why it does not(if applicable)

@gitpod-io
Copy link

gitpod-io bot commented Apr 6, 2022

@TDDR
Copy link
Contributor

TDDR commented Apr 7, 2022

I did a gh pr checkout 3413 and then pnpm services:start and got this error
image

Did I do something wrong?

@TDDR TDDR requested review from TDDR and humphd April 7, 2022 01:16
@TueeNguyen
Copy link
Contributor Author

@TDDR Ah they timed out, can you try again?

TDDR
TDDR previously approved these changes Apr 7, 2022
Copy link
Contributor

@TDDR TDDR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested out on local and all seems to be working. I'm not sure of the greater ramifications of removing all this code but it looks to be working.

package.json Outdated Show resolved Hide resolved
docker/development.yml Outdated Show resolved Hide resolved
JerryHue
JerryHue previously approved these changes Apr 7, 2022
Copy link
Contributor

@JerryHue JerryHue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went through all files with Tue on a meeting, so I am sure that this can be approved now. We have to be aware, though, that we modified the CI workflows, so when we merge, we gotta be attentive to the build status.

Copy link
Contributor

@humphd humphd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work. A few questions.

# PORT is the port used by the web server
PORT=3000

# API_URL is the URL of the Telescope Web API server. Change this to
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only thing we lose by doing this is the ability to work on the front-end locally, but use the staging server as your back-end. Probably that's OK, and we should migrate to using GitPod or EC2 cloud instances instead, so you can run everything at once.

config/env.development Outdated Show resolved Hide resolved
config/env.development Show resolved Hide resolved
docker/production.yml Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/web/app/src/config.ts Show resolved Hide resolved
menghif
menghif previously requested changes Apr 7, 2022
package.json Show resolved Hide resolved
DukeManh
DukeManh previously approved these changes Apr 22, 2022
JiaHua-Zou
JiaHua-Zou previously approved these changes Apr 22, 2022
- Remove all tests from /test
- Remove src/backend
- Remove API_URL related code in front-end + other files
- Remove 'telescope' container in production.yml
- Remove backend dependencies from package.json
- Change some in config files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.